package com.zhumei.keyscale.util;

public class VoiceBuilder
{
    private boolean checkNum;
    private String money;
    private String start;
    private String unit;
    
    public VoiceBuilder(final Builder builder) {
        this.start = builder.start;
        this.money = builder.money;
        this.unit = builder.unit;
        this.checkNum = builder.checkNum;
    }
    
    public String getMoney() {
        return this.money;
    }
    
    public String getStart() {
        return this.start;
    }
    
    public String getUnit() {
        return this.unit;
    }
    
    public boolean isCheckNum() {
        return this.checkNum;
    }
    
    public static class Builder
    {
        private boolean checkNum;
        private String money;
        private String start;
        private String unit;
        
        public VoiceBuilder builder() {
            return new VoiceBuilder(this);
        }
        
        public Builder checkNum(final boolean checkNum) {
            this.checkNum = checkNum;
            return this;
        }
        
        public Builder money(final String s) {
            this.money = StringUtils.getMoney(s);
            return this;
        }
        
        public Builder start(final String start) {
            this.start = start;
            return this;
        }
        
        public Builder unit(final String unit) {
            this.unit = unit;
            return this;
        }
    }
}
